package com.billing.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.billing.model.dao.SchedulingBeanMapper;
import com.billing.model.entity.TScheduling;
import com.billing.service.SchedulingService;

@Service
public class SchedulingServiceImpl implements SchedulingService {

	
	@Resource
	private SchedulingBeanMapper schedulingBeanMapper;
	

	public TScheduling getTScheduling(int id) {
		return schedulingBeanMapper.getTScheduling(id);
	}


	public int insertTScheduling(TScheduling che) {
		return schedulingBeanMapper.insertTScheduling(che);
	}


	@Override
	public List<TScheduling> geTSchedulingsByOrganizationid(int orgid) {
		return schedulingBeanMapper.geTSchedulingsByOrganizationid(orgid);
	}


	@Override
	public List<TScheduling> selectTSchedulingList(int organizationid,
			int currentPage, int pageSize) {
		return schedulingBeanMapper.selectTSchedulingList(organizationid, currentPage, pageSize);
	}


	@Override
	public int selectTSchedulingNum(int organizationid) {
		return schedulingBeanMapper.selectTSchedulingNum(organizationid);
	}


	@Override
	public TScheduling selectTSchedulingByid(int id) {
		return schedulingBeanMapper.selectTSchedulingByid(id);
	}


	@Override
	public int deleteTScheduling(int id) {
		return schedulingBeanMapper.deleteTScheduling(id);
	}

}
